package com.quanta.edaily.Service.impl;

import com.quanta.edaily.Service.GlobalsService;
import com.quanta.edaily.mapper.GlobalsMapper;
import com.quanta.edaily.pojo.Globals;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GlobalsServiceImpl implements GlobalsService {
    @Resource
    GlobalsMapper globalsMapper;
    @Override
    public int insert(Globals globals) {
        return globalsMapper.insert(globals);
    }

    @Override
    public int deleteById(Integer id) {
        return globalsMapper.deleteById(id);
    }

    @Override
    public int updateById(Globals globals) {
        return globalsMapper.updateById(globals);
    }

    @Override
    public Globals getById(Integer id) {
        return globalsMapper.getById(id);
    }

    @Override
    public List<Globals> getSome(Integer pageNum, Integer pageSize, String title) {
        return globalsMapper.getSome(pageNum,pageSize,title);
    }
}
